package com.ld.basic.mapper;

import com.ld.basic.query.BaseQuery;
import com.ld.doamin.Department;
import com.ld.doamin.PageListQuery;

import java.util.List;

public interface BaseMapper<T> {
    T selectById(Long id);

    List<T> selectAll();

    void add(T t);

    void delete(Long id);

    void update(T t);

    Long queryTotal(BaseQuery query);

    List<T> queryList(BaseQuery query);

    void batchDelete(List<Long> ids);
}
